package exp5;


class Student{
	String id;
	String name;
	boolean isMale;
	String birth;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public boolean isMale() {
		return isMale;
	}
	public void setMale(boolean isMale) {
		this.isMale = isMale;
	}
	public String getBirth() {
		return birth;
	}
	public void setBirth(String birth) {
		this.birth = birth;
	}

	public Student() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Student(String id, String name, boolean isMale, String birth) {
		super();
		this.id = id;
		this.name = name;
		this.isMale = isMale;
		this.birth = birth;
	}

	public String toString() {
		return "Student [id=" + id + ", name=" + name + ", isMale=" + isMale + ", birth=" + birth + "]";
	}
}

public class StudentTest {
	public static void main(String[] args) {
		Student s=new Student();
		s.setName("李华");
		System.out.println(s.getName());
		Student student = new Student("340270034","李明",true,"3.9");
		System.out.println(student.toString());
	}
}
